package com.lqian.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;



/**
 * ��ټ�¼��
 * @author Administrator
 *
 */

public class Note {
	//请假记录ID
	private Integer nid;
	//请假标题
	private String title;
	//请假理由
	private String context;
	//请假开始时间
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date startdate;
	//请假结束时间
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date enddate;
	//请假时长，天为单位，最小半天
	private float length;
	//提交申请时间
	private Date subdate;
	//审核状态，0：待审核；1：同意；2：打回；3：不同意
	private Integer estatus;
	//领导审批时间
	private Date reldate;
	//请假员工ID，外键
	private Integer eid;
	//
	private String ename;
	
	
	public String getEname() {
		return ename;
	}
	public void setEname(String ename) {
		this.ename = ename;
	}
	public Integer getNid() {
		return nid;
	}
	public void setNid(Integer nid) {
		this.nid = nid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	public Date getStartdate() {
		return startdate;
	}
	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}
	public Date getEnddate() {
		return enddate;
	}
	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}
	public float getLength() {
		return length;
	}
	public void setLength(float length) {
		this.length = length;
	}
	public Date getSubdate() {
		return subdate;
	}
	public void setSubdate(Date subdate) {
		this.subdate = subdate;
	}
	public Integer getEstatus() {
		return estatus;
	}
	public void setEstatus(Integer estatus) {
		this.estatus = estatus;
	}
	public Date getReldate() {
		return reldate;
	}
	public void setReldate(Date reldate) {
		this.reldate = reldate;
	}
	public Integer getEid() {
		return eid;
	}
	public void setEid(Integer eid) {
		this.eid = eid;
	}
	public Note(Integer nid, String title, String context, Date startdate, Date enddate, float length, Date subdate,
			Integer estatus, Date reldate, Integer eid) {
		super();
		this.nid = nid;
		this.title = title;
		this.context = context;
		this.startdate = startdate;
		this.enddate = enddate;
		this.length = length;
		this.subdate = subdate;
		this.estatus = estatus;
		this.reldate = reldate;
		this.eid = eid;
	}
	public Note() {
		super();
	}
	@Override
	public String toString() {
		return "Note [nid=" + nid + ", title=" + title + ", context=" + context + ", startdate=" + startdate
				+ ", enddate=" + enddate + ", length=" + length + ", subdate=" + subdate + ", estatus=" + estatus
				+ ", reldate=" + reldate + ", eid=" + eid + "]";
	}

	
	
}
